xen/arm: Save/Restore GICH_APR register
authorJulien Grall <julien.grall@citrix.com>
Thu, 4 Apr 2013 20:36:37 +0000 (21:36 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 11 Apr 2013 13:23:31 +0000 (14:23 +0100)
commitb952c687fa17d4eab4b59f9dbb215c1e4a644fbf
tree6792881a33016e5608b35cdd369cbaedbc188175
parent3e27e36ca5f995063612e8833c84de2faef66552
xen/arm: Save/Restore GICH_APR register

Linux uses GICC_CTLR.EOImodeNS set to 0, which means both priority drop and
deactivate interrupt functionality are made when something is written in
GICC_EOIR.

As the ARM manual specifies: "having an active interrupt in the List registers
with a priority that is not set in the corresponding Active Priorities
register" when GICV_CTLR.EOImode (ie GICC_CTLR.EOImodeNS in the guest context)
result in unpredicable behavior, we need to save/restore GICH_APR.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/gic.c